package teshop.service;

import java.util.List;

import teshop.data.domain.Customer;


/**
 * Service for customer
 * 
 * @author Hryhory Lira (TietoEnator Java Developer)
 *
 */
public interface CustomerService {
	
	/**
	 * Authorization using login and password
	 * @param login user name
	 * @param password user password
	 * @return true if authorization completed successfully
	 */
	public boolean authorize(String login, String password);
	
	/**
	 * @return list of all registered users (customers)
	 */
	public List<Customer> getCustomerList();
	
	/**
	 * Adds a new customer
	 * @param customer new customer
	 */
	public void addCustomer(Customer customer);
	
	/**
	 * Updates existing customer
	 * @param customer new customer
	 */
	public void editCustomer(Customer customer);

}
